package com.lcn.api.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "file-service")
public interface FileServiceFeign {

    /**
     * 上传二维码并返回图片地址
     * @param wechatNum 微信号
     * @param userId 用户ID
     * @return
     * @throws Exception
     */
    @PostMapping("/file/generateQrCode")
    String generateQrCode(@RequestParam("wechatNum") String wechatNum,
                                 @RequestParam("userId") String userId) throws Exception;

}
